package com.xuyiwei.mayi.controller;

import com.xuyiwei.mayi.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by xuyiwei on 2019/4/23.
 */
@RestController
public class OrderController {
    @Autowired
    private MemberService memberService;

    @RequestMapping("/order")
    public String order(){
        List<String> aa= memberService.getOrderByUserList();
        return aa.toString();
    }

    @RequestMapping("/memberport")
    public String memberport(){
        String aa= memberService.getPort();
        return aa;
    }
}
